package com.xxgc.vfc.auth.service.impl;

import com.xxgc.vfc.api.service.IRoleAndPermissionsService;
import com.xxgc.vfc.auth.mapper.UsersMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author: SJY
 * @Date: 2023/11/16 20:42:58
 */
@DubboService
public class RoleAndPermServiceImpl implements IRoleAndPermissionsService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<String> getRoleList(String id) {
        return usersMapper.getRoleList(id);
    }

    @Override
    public List<String> getPermissionList(String id) { return usersMapper.getPermissionList(id); }
}
